/*
 * @Author: cl
 * @Description: 装饰器
 * @Date: 2023-05-04 17:42:23
 * @LastEditTime: 2023-05-04 17:46:52
 * @FilePath: \jsnode\nestjs\naota\src\user\strategy\auth.decorator.ts
 * @LastEditors: cl
 */
import { applyDecorators, UseGuards } from '@nestjs/common'
import { AuthGuard } from '@nestjs/passport'
export function Auth() {
  return applyDecorators(UseGuards(AuthGuard('jwt')))
}
